package org.flexqueries2.utils.events
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	
	public class EventWaiterObject
	{
		[Bindable]
		public var object:EventDispatcher;
		
		[Bindable]
		public var eventName:String;
		
		[Bindable]
		public var isFinished:Boolean;
		
		[Bindable]
		public var receivedEvent:Event;
		
		public function toString():String
		{
			return Object(this.object).id + "_" + this.eventName;
		}
		
		public function EventWaiterObject(object:EventDispatcher, eventName:String)
		{
			this.object = object;
			this.eventName = eventName;
			this.isFinished = false;
			
			//this.object.addEventListener(this.eventName, onEventReceived);
		}
		
		
		
	}
}